<?php
/*
 * @Date: 2025-04-10 22:35:52
 * @LastEditors: 贾二小 erxiao.jia@outlook.com
 * @LastEditTime: 2025-04-13 17:40:12
 * @FilePath: /admin/database/seeders/UserSeeder.php
 */

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::create([
            'name' => 'Admin',
            'real_name' => 'Admin',
            'mobile' => '18888888888',
            'email' => 'admin@example.com',
            'email_verified_at' => now(),
            'is_super_admin' => true,
            'password' => Hash::make('admin888'),
        ]);
        User::factory(20)->create();
    }
}
